package com.iotechn.unimall.admin.api.integral;

import com.iotechn.unimall.core.annotation.HttpMethod;
import com.iotechn.unimall.core.annotation.HttpOpenApi;
import com.iotechn.unimall.core.annotation.HttpParam;
import com.iotechn.unimall.core.annotation.HttpParamType;
import com.iotechn.unimall.core.annotation.param.NotNull;
import com.iotechn.unimall.core.exception.ServiceException;
import com.iotechn.unimall.data.domain.IntegralTaskDO;

import java.util.List;

/**
 * @author kyms
 * @date 2020-08-04 17:19
 */
@HttpOpenApi(group = "admin.integraltask", description = "后台积分任务")
public interface AdminIntegralTaskService {

    @HttpMethod(description = "列表")
    List<IntegralTaskDO> listTask(@NotNull @HttpParam(name = "adminId", type = HttpParamType.ADMIN_ID, description = "管理员Id") Long adminId);

    @HttpMethod(description = "更新")
    IntegralTaskDO updateTask(@NotNull @HttpParam(name = "task", description = "任务")   IntegralTaskDO  task, @NotNull @HttpParam(name = "adminId", type = HttpParamType.ADMIN_ID, description = "管理员Id") Long adminId) throws ServiceException;
}
